package com.appleyk.controller;

import com.appleyk.config2.HelloProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>越努力，越幸运</p>
 *
 * @author appleyk
 * @version V.0.1.1
 * @blob https://blog.csdn.net/appleyk
 * @date created on  7:13 下午 2020/12/2
 */
@RestController
@RequestMapping("/")
public class HelloController {

    @Autowired
    private HelloProperties properties;

    @GetMapping("hello")
    public String sayHello(){
        System.out.println(properties);
        return "hello spring-boot !";
    }

}
